#include "common.h"
namespace common {
uint32_t reverseBits(uint32_t n) {
    uint32_t result = 0;
    uint32_t t = 0;
    for (int i = 0; i < 32 && n > 0; i++) {
        t = n & 1;
        t <<= (31 - i);
        result = result | t;
        n >>= 1;
    }
    return result;
}
} // namespace common
